@import "./variables.module.scss";
//@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "bd";

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    Helvetica Neue,
    Helvetica,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    Arial,
    sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg,
      rgba(32, 182, 249, 1) 0%,
      rgba(32, 182, 249, 1) 0%,
      rgba(33, 120, 241, 1) 100%,
      rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.el-form {
  .el-form-item__label {
    font-weight: normal;
  }
}

.text-over {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-break{
  white-space: break-spaces;
  word-break: break-all
}

.jzt-input-number.el-input-number.is-controls-right {
  .el-input-number__decrease,
  .el-input-number__increase {
    display: none;
    text-align: center;
  }
  .el-input__inner {
    text-align: left;
  }
  &:hover {
    .el-input-number__decrease,
    .el-input-number__increase {
      display: block;
    }
  }
  &.jzt-input-number-hidden {
    position: relative;
    .el-input__wrapper {
      padding-right: 20px !important;
    }
    &.suffix {
      .el-input__wrapper::after {
        position: absolute;
        content: "%";
        color: #1a1a1a;
        right: 10px;
        font-size: 12px;
      }
    }
    &.suffix-day{
      .el-input__wrapper::after{
        position: absolute;
        content: '天';
        color: #1a1a1a;
        right: 10px;
        font-size: 12px;
      }
    }
    &:hover{
      .el-input-number__decrease,
      .el-input-number__increase {
        display: none;
      }
    }
  }
}

.jzt-button.el-button{
  &.el-button--info{
    background-color: #f2f3f5;
    color: #1d2129;
    border: none;
    &:hover{
      background-color: #f2f3f5;
      color: #1d2129;
    }
  }
}

.jzt-flex-center{
  display: flex;
  align-items: center;
  justify-content: center;
}
.jzt-flex-start{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.jzt-flex-end{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.jzt-flex-bt{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-success-message {
  width: 578px !important;
  height: 250px !important;
  border-radius: 16px !important;
  box-shadow: 0px 4px 25px 0px rgba(4, 19, 74, 0.3);
  background-color: white;
  text-align: center;
  top: calc((100vh - 250px) / 2) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .el-icon.el-message__icon {
    display: none;
  }

  .el-message__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .img {
    width: 100px;
    height: 100px;
    background: url("@/assets/images/mall/success.png");
    margin-bottom: 40px;
  }

  .img+p {
    font-size: 14px;
    color: #3d3d3d;
  }
}

@for $i from 12 through 60 {
  .f#{$i} {
    font-size: $i * 1px !important;
  }
}

@for $i from 0 through 200 {
  .pd#{$i} {
    padding: $i * 1px !important;
  }

  .pt#{$i} {
    padding-top: $i * 1px !important;
  }

  .pb#{$i} {
    padding-bottom: $i * 1px !important;
  }

  .pl#{$i} {
    padding-left: $i * 1px !important;
  }

  .pr#{$i} {
    padding-right: $i * 1px !important;
  }
}

@for $i from 0 through 200 {
  .mg#{$i} {
    margin: $i * 1px !important;
  }

  .mt#{$i} {
    margin-top: $i * 1px !important;
  }

  .mb#{$i} {
    margin-bottom: $i * 1px !important;
  }

  .ml#{$i} {
    margin-left: $i * 1px !important;
  }

  .mr#{$i} {
    margin-right: $i * 1px !important;
  }
}
@for $i from 0 through 200 {
  .wd#{$i} {
    width: $i * 1px !important;
  }
}

@for $i from 0 through 200 {
  .ht#{$i} {
    height: $i * 1px !important;
  }
}
.flex-row {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
}

.flex-align {
  display: flex;
  display: -webkit-flex;
  align-items: center;
}

.flex-between {
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
}

.flex-inline-flex {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.flex-overflow {
  flex: 1;
  overflow-y: auto;
}

.position-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
